package com.xingchen.springboot3.mapper;

import com.xingchen.springboot3.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    User getByUsername(String username);

    void insert(User dto);

    User getById(Integer id);

    int update(User user);

    void updateAvatar(Integer id, String avatar);

    void updatePWD(Integer id, String md5String);
}